package mylab.io.base.model.impl;

import com.fasterxml.jackson.annotation.JsonIgnore;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import mylab.io.base.model.Endpoint;

@Getter
@Setter
@ToString
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
public class RxtxEndpoint implements Endpoint {
    protected String serialPort;

    public RxtxEndpoint() {
    }

    public RxtxEndpoint(String serialPort) {
        this.serialPort = serialPort;
    }

    @JsonIgnore
    @EqualsAndHashCode.Include
    @Override
    public String getId() {
        return serialPort;
    }

}
